package com.ruoyi.cs.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.Response;
import com.ruoyi.cs.domain.TGoodsUpgrate;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.cs.domain.vo.TGoodsUpgrateRecentlyVo;

/**
 * 幸运饰品升级记录Service接口
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
public interface ITGoodsUpgrateService 
{
    /**
     * 查询幸运饰品升级记录
     * 
     * @param luckyId 幸运饰品升级记录ID
     * @return 幸运饰品升级记录
     */
    public Response<Map<String,Object>> selectTGoodsUpgrateById(String luckyId);

    /**
     * 查询幸运饰品升级记录列表
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 幸运饰品升级记录集合
     */
    public List<TGoodsUpgrate> selectTGoodsUpgrateList(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 新增幸运饰品升级记录
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 结果
     */
    public int insertTGoodsUpgrate(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 修改幸运饰品升级记录
     * 
     * @param tGoodsUpgrate 幸运饰品升级记录
     * @return 结果
     */
    public int updateTGoodsUpgrate(TGoodsUpgrate tGoodsUpgrate);

    /**
     * 批量删除幸运饰品升级记录
     * 
     * @param luckyIds 需要删除的幸运饰品升级记录ID
     * @return 结果
     */
    public int deleteTGoodsUpgrateByIds(String[] luckyIds);

    /**
     * 删除幸运饰品升级记录信息
     * 
     * @param luckyId 幸运饰品升级记录ID
     * @return 结果
     */
    public int deleteTGoodsUpgrateById(String luckyId);



    /**
     * 幸运饰品最近掉落
     * @return
     */
    public List<TGoodsUpgrateRecentlyVo> recentlyOpen(String goodsId);

    /**
     * 幸运饰品排名
     * @param type
     * @return
     */
    public List<TGoodsUpgrate> upgrateRanking(String type);
}
